package com.iyundao.io.mapper;

import com.iyundao.io.model.GiftImage;

import static org.apache.ibatis.jdbc.SqlBuilder.*;

public class GiftImageSqlProvider {

    public String insertSelective(GiftImage record) {
        BEGIN();
        INSERT_INTO("giftimage");
        
        if (record.getId() != null) {
            VALUES("id", "#{id,jdbcType=INTEGER}");
        }
        
        if (record.getGiftid() != null) {
            VALUES("giftid", "#{giftid,jdbcType=INTEGER}");
        }
        
        if (record.getGiftimageurl() != null) {
            VALUES("giftimageurl", "#{giftimageurl,jdbcType=VARCHAR}");
        }
        
        return SQL();
    }
}